package presentation.controller;

import logic.facade.StudentFacade;
import vo.StudentVO;

/**
 *
 * @author Alexander
 */
public class ControlPanelLogin {

    public StudentVO login(vo.StudentVO vo) {
        if (vo.getUsername().equals("") || vo.getPassword().equals("")) {
            return null;
        } else {
            StudentVO login = new StudentFacade().login(vo);
            if (login != null) {
                return login;
            } else {
                return null;
            }
        }
    }
}
